﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace lcmyjobs.Web.invite
{
    public partial class findR : BasePage
    {
        lcmyjobs.BLL.news bn = new BLL.news();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                this.Title = string.Format("{1}人才网   {1}招聘网   {1}人才   {1}求职网  {1}人才信息  {1}猎头网  {0}", Application["webname"].ToString(), Application["webregion"].ToString());
                int id = int.Parse(Application["webid"].ToString());
                lcmyjobs.BLL.adverts ad = new BLL.adverts();
                DataSet ds = ad.GetAdvnid(25);
                if (ds.Tables[0].Rows.Count > 0)
                {
                    this.HyperLink1.ImageUrl = "~" + ds.Tables[0].Rows[0][0].ToString();
                    this.HyperLink1.NavigateUrl = ds.Tables[0].Rows[0][1].ToString();
                }
                Repeater1.DataSource = bn.GetListNews(id, 6, 5);
                Repeater1.DataBind();

            }

        }
    }
}